<?php /* Smarty version 2.6.12, created on 2008-10-30 11:03:59
         compiled from customer/main/product_desc.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'substitute', 'customer/main/product_desc.tpl', 31, false),array('modifier', 'formatprice', 'customer/main/product_desc.tpl', 42, false),array('modifier', 'default', 'customer/main/product_desc.tpl', 129, false),array('modifier', 'escape', 'customer/main/product_desc.tpl', 201, false),array('function', 'math', 'customer/main/product_desc.tpl', 110, false),)), $this); ?>
<?php func_load_lang($this, "customer/main/product_desc.tpl","lbl_details,lbl_sku,lbl_in_stock,txt_items_available,lbl_no_items_available,lbl_weight,lbl_price,lbl_options,lbl_quantity,txt_need_min_amount,txt_out_of_stock,txt_product_downloadable,txt_pconf_product_is_bundled,lbl_pconf_add_to_configuration,lbl_note,lbl_pconf_slot_out_of_stock_note,txt_add_to_configuration_note,lbl_add_to_cart"); ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/include_js.tpl", 'smarty_include_vars' => array('src' => "main/popup_image.js")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "form_validation_js.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php ob_start(); ?>

<form name="orderform" method="post" action="cart.php?mode=add" onsubmit="javascript: return FormValidation();">

<table width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><b><font class="ProductDetailsTitle"><?php echo $this->_tpl_vars['lng']['lbl_details']; ?>
</font></b></td></tr>
<tr><td class="Line" height="1" colspan="2"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/spacer.gif" class="Spc" alt="" /></td></tr>

<tr><td colspan="2">&nbsp;</td></tr>

<tr>
	<td width="30%"><font class="ProductPriceConverting"><?php echo $this->_tpl_vars['lng']['lbl_sku']; ?>
</font></td>
</tr>
<tr>
	<td nowrap="nowrap" id="product_code"><?php echo $this->_tpl_vars['product']['productcode']; ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>


<?php if ($this->_tpl_vars['config']['Appearance']['show_in_stock'] == 'Y' && $this->_tpl_vars['config']['General']['unlimited_products'] != 'Y' && $this->_tpl_vars['product']['distribution'] == ""): ?>
<tr>
	<td width="30%"><font class="ProductPriceConverting"><?php echo $this->_tpl_vars['lng']['lbl_in_stock']; ?>
</font></td>
</tr>
<tr>
	<td nowrap="nowrap" id="product_avail_txt">
<?php if ($this->_tpl_vars['product']['avail'] > 0):  echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_items_available'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'items', $this->_tpl_vars['product']['avail']) : smarty_modifier_substitute($_tmp, 'items', $this->_tpl_vars['product']['avail']));  else:  echo $this->_tpl_vars['lng']['lbl_no_items_available'];  endif; ?>
	</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['product']['weight'] != "0.00" || $this->_tpl_vars['variants'] != ''): ?>
<tr id="product_weight_box">
	<td width="30%"><font class="ProductPriceConverting"><?php echo $this->_tpl_vars['lng']['lbl_weight']; ?>
</font></td>
</tr>
<tr>
	<td nowrap="nowrap"><span id="product_weight"><?php echo ((is_array($_tmp=$this->_tpl_vars['product']['weight'])) ? $this->_run_mod_handler('formatprice', true, $_tmp) : smarty_modifier_formatprice($_tmp)); ?>
</span> <?php echo $this->_tpl_vars['config']['General']['weight_symbol']; ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['active_modules']['Extra_Fields'] != ""):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Extra_Fields/product.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<tr><td colspan="2">&nbsp;</td></tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['active_modules']['Feature_Comparison'] != ""):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Feature_Comparison/product.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<tr><td colspan="2">&nbsp;</td></tr>
<?php endif; ?>

<?php if ($this->_tpl_vars['active_modules']['Subscriptions'] != "" && $this->_tpl_vars['subscription']): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Subscriptions/subscription_info.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<tr><td colspan="2">&nbsp;</td></tr>
<?php else: ?>
<tr><td class="ProductPriceConverting" valign="top"><?php echo $this->_tpl_vars['lng']['lbl_price']; ?>
:</td>
</tr>
<tr>
<td valign="top">
<?php if ($this->_tpl_vars['product']['taxed_price'] != 0 || $this->_tpl_vars['variant_price_no_empty']): ?>
<font class="ProductDetailsTitle"><span id="product_price" style="white-space: nowrap;"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "currency.tpl", 'smarty_include_vars' => array('value' => $this->_tpl_vars['product']['taxed_price'],'plain_text_message' => true)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></span></font><font class="MarketPrice"> <span id="product_alt_price" style="white-space: nowrap;"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/alter_currency_value.tpl", 'smarty_include_vars' => array('alter_currency_value' => $this->_tpl_vars['product']['taxed_price'],'plain_text_message' => true)));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></span></font>
<?php if ($this->_tpl_vars['product']['taxes']): ?><br /><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/taxed_price.tpl", 'smarty_include_vars' => array('taxes' => $this->_tpl_vars['product']['taxes'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif;  else: ?>
<input type="text" size="7" name="price" />
<?php endif; ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php endif; ?>
</table>


<p />
<table width="100%" cellpadding="0" cellspacing="0" border="0">

<tr><td colspan="2">
<b><font class="ProductDetailsTitle"><?php echo $this->_tpl_vars['lng']['lbl_options']; ?>
</font></b>
</td></tr>

<tr><td class="Line" height="1" colspan="2"><img src="<?php echo $this->_tpl_vars['ImagesDir']; ?>
/spacer.gif" class="Spc" alt="" /></td></tr>
<tr><td colspan="2">&nbsp;</td></tr>
<?php if ($this->_tpl_vars['active_modules']['Product_Options'] != ""):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Product_Options/customer_options.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>

<tr>
<td height="25" width="30%"><?php echo $this->_tpl_vars['lng']['lbl_quantity'];  if ($this->_tpl_vars['product']['min_amount'] > 1): ?><br /><font class="ProductDetailsTitle"><?php echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_need_min_amount'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'items', $this->_tpl_vars['product']['min_amount']) : smarty_modifier_substitute($_tmp, 'items', $this->_tpl_vars['product']['min_amount'])); ?>
</font><?php endif; ?></td>
</tr>

<tr>
<td>
<?php if ($this->_tpl_vars['config']['General']['unlimited_products'] == 'N' && ( $this->_tpl_vars['product']['avail'] <= 0 || $this->_tpl_vars['product']['avail'] < $this->_tpl_vars['product']['min_amount'] ) && $this->_tpl_vars['variants'] == ''): ?>
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = 1;
var avail = 0;
var product_avail = 0;
-->
</script>
<b><?php echo $this->_tpl_vars['lng']['txt_out_of_stock']; ?>
</b>
<?php else:  if ($this->_tpl_vars['config']['General']['unlimited_products'] == 'Y'):  $this->assign('mq', $this->_tpl_vars['config']['Appearance']['max_select_quantity']);  else:  echo smarty_function_math(array('equation' => "x/y",'x' => $this->_tpl_vars['config']['Appearance']['max_select_quantity'],'y' => $this->_tpl_vars['product']['min_amount'],'assign' => 'tmp'), $this);?>

<?php if ($this->_tpl_vars['tmp'] < 2):  $this->assign('minamount', $this->_tpl_vars['product']['min_amount']);  else:  $this->assign('minamount', 1);  endif;  echo smarty_function_math(array('equation' => "min(maxquantity+minamount, productquantity+1)",'assign' => 'mq','maxquantity' => $this->_tpl_vars['config']['Appearance']['max_select_quantity'],'minamount' => $this->_tpl_vars['minamount'],'productquantity' => $this->_tpl_vars['product']['avail']), $this);?>

<?php endif;  if ($this->_tpl_vars['product']['distribution'] == "" && ! ( $this->_tpl_vars['active_modules']['Subscriptions'] != "" && $this->_tpl_vars['subscription'] )):  if ($this->_tpl_vars['product']['min_amount'] <= 1):  $this->assign('start_quantity', 1);  else:  $this->assign('start_quantity', $this->_tpl_vars['product']['min_amount']);  endif;  if ($this->_tpl_vars['config']['General']['unlimited_products'] == 'Y'):  echo smarty_function_math(array('equation' => "x+y",'assign' => 'mq','x' => $this->_tpl_vars['mq'],'y' => $this->_tpl_vars['start_quantity']), $this);?>

<?php endif; ?>
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = <?php echo ((is_array($_tmp=@$this->_tpl_vars['start_quantity'])) ? $this->_run_mod_handler('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1)); ?>
;
var avail = <?php echo ((is_array($_tmp=@$this->_tpl_vars['mq'])) ? $this->_run_mod_handler('default', true, $_tmp, 1) : smarty_modifier_default($_tmp, 1)); ?>
-1;
var product_avail = <?php echo ((is_array($_tmp=@$this->_tpl_vars['product']['avail'])) ? $this->_run_mod_handler('default', true, $_tmp, '0') : smarty_modifier_default($_tmp, '0')); ?>
;
-->
</script>
<select id="product_avail" name="amount"<?php if ($this->_tpl_vars['active_modules']['Product_Options'] != '' && $this->_tpl_vars['product_options'] != ''): ?> onchange="check_wholesale(this.value);"<?php endif; ?>>
<?php unset($this->_sections['quantity']);
$this->_sections['quantity']['name'] = 'quantity';
$this->_sections['quantity']['loop'] = is_array($_loop=$this->_tpl_vars['mq']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['quantity']['start'] = (int)$this->_tpl_vars['start_quantity'];
$this->_sections['quantity']['show'] = true;
$this->_sections['quantity']['max'] = $this->_sections['quantity']['loop'];
$this->_sections['quantity']['step'] = 1;
if ($this->_sections['quantity']['start'] < 0)
    $this->_sections['quantity']['start'] = max($this->_sections['quantity']['step'] > 0 ? 0 : -1, $this->_sections['quantity']['loop'] + $this->_sections['quantity']['start']);
else
    $this->_sections['quantity']['start'] = min($this->_sections['quantity']['start'], $this->_sections['quantity']['step'] > 0 ? $this->_sections['quantity']['loop'] : $this->_sections['quantity']['loop']-1);
if ($this->_sections['quantity']['show']) {
    $this->_sections['quantity']['total'] = min(ceil(($this->_sections['quantity']['step'] > 0 ? $this->_sections['quantity']['loop'] - $this->_sections['quantity']['start'] : $this->_sections['quantity']['start']+1)/abs($this->_sections['quantity']['step'])), $this->_sections['quantity']['max']);
    if ($this->_sections['quantity']['total'] == 0)
        $this->_sections['quantity']['show'] = false;
} else
    $this->_sections['quantity']['total'] = 0;
if ($this->_sections['quantity']['show']):

            for ($this->_sections['quantity']['index'] = $this->_sections['quantity']['start'], $this->_sections['quantity']['iteration'] = 1;
                 $this->_sections['quantity']['iteration'] <= $this->_sections['quantity']['total'];
                 $this->_sections['quantity']['index'] += $this->_sections['quantity']['step'], $this->_sections['quantity']['iteration']++):
$this->_sections['quantity']['rownum'] = $this->_sections['quantity']['iteration'];
$this->_sections['quantity']['index_prev'] = $this->_sections['quantity']['index'] - $this->_sections['quantity']['step'];
$this->_sections['quantity']['index_next'] = $this->_sections['quantity']['index'] + $this->_sections['quantity']['step'];
$this->_sections['quantity']['first']      = ($this->_sections['quantity']['iteration'] == 1);
$this->_sections['quantity']['last']       = ($this->_sections['quantity']['iteration'] == $this->_sections['quantity']['total']);
?>
<option value="<?php echo $this->_sections['quantity']['index']; ?>
"<?php if ($GLOBALS['HTTP_GET_VARS']['quantity'] == $this->_sections['quantity']['index']): ?> selected="selected"<?php endif; ?>><?php echo $this->_sections['quantity']['index']; ?>
</option>
<?php endfor; endif; ?>
</select>
<?php else: ?>
<script type="text/javascript" language="JavaScript 1.2">
<!--
var min_avail = 1;
var avail = 1;
var product_avail = 1;
-->
</script>
<font class="ProductDetailsTitle">1</font><input type="hidden" name="amount" value="1" /> <?php if ($this->_tpl_vars['product']['distribution'] != ""):  echo $this->_tpl_vars['lng']['txt_product_downloadable'];  endif;  endif;  endif; ?>
</td></tr>
<tr><td colspan="2">
<input type="hidden" name="mode" value="add" />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/main/product_prices.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  if ($this->_tpl_vars['config']['General']['unlimited_products'] == 'Y' || ( $this->_tpl_vars['product']['avail'] > 0 && $this->_tpl_vars['product']['avail'] >= $this->_tpl_vars['product']['min_amount'] ) || $this->_tpl_vars['variants'] != ''):  if ($this->_tpl_vars['js_enabled']): ?>
<br />
<?php if ($this->_tpl_vars['product']['forsale'] != 'B'): ?>
<table cellspacing="0" cellpadding="0">
<tr>
	<td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/add_to_cart.tpl", 'smarty_include_vars' => array('style' => 'button','href' => "javascript: if(FormValidation()) document.orderform.submit();")));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>

<?php if (( $this->_tpl_vars['login'] != "" || $this->_tpl_vars['config']['Wishlist']['add2wl_unlogged_user'] == 'Y' ) && $this->_tpl_vars['active_modules']['Wishlist'] != ""): ?>
<tr>
	<td>&nbsp;</td>
</tr>
<tr>
	<td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "customer/add2wl.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	</td>
</tr>
<?php endif; ?>
</table>
<?php else:  echo $this->_tpl_vars['lng']['txt_pconf_product_is_bundled']; ?>

<?php endif;  if ($GLOBALS['HTTP_GET_VARS']['pconf'] != "" && $this->_tpl_vars['active_modules']['Product_Configurator']): ?>
<br /><br />
<input type="hidden" name="slot" value="<?php echo $GLOBALS['HTTP_GET_VARS']['slot']; ?>
" />
<input type="hidden" name="addproductid" value="<?php echo $this->_tpl_vars['product']['productid']; ?>
" />
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "buttons/button.tpl", 'smarty_include_vars' => array('button_title' => $this->_tpl_vars['lng']['lbl_pconf_add_to_configuration'],'style' => 'button','href' => "javascript:if (FormValidation()) ".($this->_tpl_vars['ldelim'])."document.orderform.productid.value='".($GLOBALS['HTTP_GET_VARS']['pconf'])."';document.orderform.action='pconf.php';document.orderform.submit()".($this->_tpl_vars['rdelim']))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  if ($this->_tpl_vars['config']['General']['unlimited_products'] != 'Y' && $this->_tpl_vars['product']['pconf_avail'] <= 0): ?>
<br />
<font class="Message"><b><?php echo $this->_tpl_vars['lng']['lbl_note']; ?>
:</b> <?php echo $this->_tpl_vars['lng']['lbl_pconf_slot_out_of_stock_note']; ?>
</font><br />
<?php endif; ?>
<br />
<?php echo $this->_tpl_vars['lng']['txt_add_to_configuration_note']; ?>

<br />
<?php endif;  else:  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "submit_wo_js.tpl", 'smarty_include_vars' => array('value' => $this->_tpl_vars['lng']['lbl_add_to_cart'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif;  endif;  if ($this->_tpl_vars['active_modules']['Feature_Comparison'] != ""):  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "modules/Feature_Comparison/product_buttons.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
  endif; ?>
<br /><br />
</td>
</tr>
</table>

<input type="hidden" name="productid" value="<?php echo $this->_tpl_vars['product']['productid']; ?>
" />
<input type="hidden" name="cat" value="<?php echo ((is_array($_tmp=$GLOBALS['HTTP_GET_VARS']['cat'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" />
<input type="hidden" name="page" value="<?php echo ((is_array($_tmp=$GLOBALS['HTTP_GET_VARS']['page'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" />
</form>
<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog_product.tpl", 'smarty_include_vars' => array('content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

